import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'


Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import  uniDataCheckbox from '@/uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.vue';
import  uniDatetimePicker from '@/uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue'
import  uniDataSelect from '@/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue'
import store from './store'
export function createApp() {
  const app = createSSRApp(App)
  app.component('uni-data-checkbox', uniDataCheckbox);
  app.component('uni-data-picker', uniDatetimePicker);
  app.component('uni-data-select', uniDataSelect);
  app.use(store)
  return {
    app
  }
}
// #endif